package com.example.pages;

import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;

public abstract class AnyPage extends PageBase {

    @FindBy(xpath = "a[href='./?lang=en_US']")
    public WebElement langENLink;

    @FindBy(css = "a[href$='lang=nl_NL']")
    public WebElement langNLLink;

    @FindBy(css = "footer > a")
    public WebElement homePageLink;

    @FindBy(xpath = "//header/div/a")
    private WebElement mainPageLink;


    abstract void tryToOpen();

    public void goToMainPage() {
        mainPageLink.click();
    }

}
